<!-- include tpl=header menutitle=$page_rs.title -->
<section class="bg-light p-5"{if $cate_rs.banner || $page_rs.banner} style="background:url('{$cate_rs.banner ? $cate_rs.banner.filename : $page_rs.banner.filename}') center center no-repeat;background-size:cover;"{/if}>
	<h1 class="p-4 text-center">{$cate_rs ? $cate_rs.title : $page_rs.title}</h1>
	<!-- php:$taglist = $cate_rs.tag ? $cate_rs.tag : $page_rs.tag -->
	<!-- if $taglist -->
	<div class="container">
		<div class="text-center m-3">
			<span class="p-2 bg-light-50 rounded-lg">
			标签：
			<!-- loop from=$taglist key=$k value=$v id=$idxx -->
			{$v.html}<!-- if $idxx.total != $idxx.num -->，<!-- /if -->
			<!-- /loop -->
			</span>
		</div>
	</div>
	<!-- /if -->
</section>
<section class="container"><div class="mt-3"><!-- include tpl=block/breadcrumb --></div></section>

<section class="container">
	<!-- catelist pid=$page_rs.id -->
	<ul class="list-group list-group-flush mb-4">
		<!-- loop from=$list.sublist key=$key value=$value id=$tmpid -->
		<li class="list-group-item">
			<div class="media">
				<a href="{$value.url}" title="{$value.title}"><img src="{$value.thumb ? $value.thumb.filename : 'images/bbs.png'}" class="mr-3" alt="{$value.title}" style="width:60px;" /></a>
				<div class="media-body">
					<div class="row">
						<div class="col-sm-7">
							<a href="{$value.url}" title="{$value.title}"><h5 class="mt-0">{$value.title}</h5></a>
							<!-- if $value.note --><div class="text-body">{func nl2br $value.note}</div><!-- /if -->
						</div>
						<div class="col-sm-1 text-center">
							<!-- php:$total = phpok('_total','pid='.$page_rs.id.'&cateid='.$value.id) -->{$total}
						</div>
						<div class="col">
							<!-- arclist pid=$page_rs.id cateid=$value.id psize=3 -->
							<!-- loop from=$list.rslist key=$k value=$v -->
							<div><a href="{$v.url}" title="{$v.title}">{func phpok_cut $v.title 70 …} <small class="text-muted">{func time_format $v.dateline}</small></a></div>
							<!-- /loop -->
						</div>
					</div>
				</div>
			</div>
		</li>
		<!-- /loop -->
	</ul>
</section>
<!-- include tpl=footer -->